home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / Emulation_Include_Files / winioctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  4.3 KB  |  115 lines

  1.  
  2. /* 
  3.  * Copyright (c) 1990-1998 Microsoft Corporation.
  4.  * Module Name: winioctl.h
  5.  * Abstract: this module defines device IO control codes.
  6. */
  7.  
  8. #ifndef _WINIOCTL_
  9. #define _WINIOCTL_
  10.  
  11. //
  12. // Macro definition for defining IOCTL and FSCTL function control codes.  Note
  13. // that function codes 0-2047 are reserved for Microsoft Corporation, and
  14. // 2048-4095 are reserved for customers.
  15. //
  16.  
  17. #define CTL_CODE( DeviceType, Function, Method, Access ) (                 \
  18.     ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
  19. )
  20.  
  21. //
  22. // Define the method codes for how buffers are passed for I/O and FS controls
  23. //
  24.  
  25. #define METHOD_BUFFERED                 0
  26. #define METHOD_IN_DIRECT                1
  27. #define METHOD_OUT_DIRECT               2
  28. #define METHOD_NEITHER                  3
  29.  
  30. //
  31. // Define the access check value for any access
  32. //
  33. //
  34. // The FILE_READ_ACCESS and FILE_WRITE_ACCESS constants are also defined in
  35. // ntioapi.h as FILE_READ_DATA and FILE_WRITE_DATA. The values for these
  36. // constants *MUST* always be in sync.
  37. //
  38.  
  39. #define FILE_ANY_ACCESS                 0
  40. #define FILE_READ_ACCESS          ( 0x0001 )    // file & pipe
  41. #define FILE_WRITE_ACCESS         ( 0x0002 )    // file & pipe
  42.  
  43.  
  44. //
  45. // Define the various device type values.  Note that values used by Microsoft
  46. // Corporation are in the range 0-32767, and 32768-65535 are reserved for use
  47. // by customers.
  48. //
  49.  
  50. #define DEVICE_TYPE ULONG
  51.  
  52. #define FILE_DEVICE_BEEP                0x00000001
  53. #define FILE_DEVICE_CD_ROM              0x00000002
  54. #define FILE_DEVICE_CD_ROM_FILE_SYSTEM  0x00000003
  55. #define FILE_DEVICE_CONTROLLER          0x00000004
  56. #define FILE_DEVICE_DATALINK            0x00000005
  57. #define FILE_DEVICE_DFS                 0x00000006
  58. #define FILE_DEVICE_DISK                0x00000007
  59. #define FILE_DEVICE_DISK_FILE_SYSTEM    0x00000008
  60. #define FILE_DEVICE_FILE_SYSTEM         0x00000009
  61. #define FILE_DEVICE_INPORT_PORT         0x0000000a
  62. #define FILE_DEVICE_KEYBOARD            0x0000000b
  63. #define FILE_DEVICE_MAILSLOT            0x0000000c
  64. #define FILE_DEVICE_MIDI_IN             0x0000000d
  65. #define FILE_DEVICE_MIDI_OUT            0x0000000e
  66. #define FILE_DEVICE_MOUSE               0x0000000f
  67. #define FILE_DEVICE_MULTI_UNC_PROVIDER  0x00000010
  68. #define FILE_DEVICE_NAMED_PIPE          0x00000011
  69. #define FILE_DEVICE_NETWORK             0x00000012
  70. #define FILE_DEVICE_NETWORK_BROWSER     0x00000013
  71. #define FILE_DEVICE_NETWORK_FILE_SYSTEM 0x00000014
  72. #define FILE_DEVICE_NULL                0x00000015
  73. #define FILE_DEVICE_PARALLEL_PORT       0x00000016
  74. #define FILE_DEVICE_PHYSICAL_NETCARD    0x00000017
  75. #define FILE_DEVICE_PRINTER             0x00000018
  76. #define FILE_DEVICE_SCANNER             0x00000019
  77. #define FILE_DEVICE_SERIAL_MOUSE_PORT   0x0000001a
  78. #define FILE_DEVICE_SERIAL_PORT         0x0000001b
  79. #define FILE_DEVICE_SCREEN              0x0000001c
  80. #define FILE_DEVICE_SOUND               0x0000001d
  81. #define FILE_DEVICE_STREAMS             0x0000001e
  82. #define FILE_DEVICE_TAPE                0x0000001f
  83. #define FILE_DEVICE_TAPE_FILE_SYSTEM    0x00000020
  84. #define FILE_DEVICE_TRANSPORT           0x00000021
  85. #define FILE_DEVICE_UNKNOWN             0x00000022
  86. #define FILE_DEVICE_VIDEO               0x00000023
  87. #define FILE_DEVICE_VIRTUAL_DISK        0x00000024
  88. #define FILE_DEVICE_WAVE_IN             0x00000025
  89. #define FILE_DEVICE_WAVE_OUT            0x00000026
  90. #define FILE_DEVICE_8042_PORT           0x00000027
  91. #define FILE_DEVICE_NETWORK_REDIRECTOR  0x00000028
  92. #define FILE_DEVICE_BATTERY             0x00000029
  93. #define FILE_DEVICE_BUS_EXTENDER        0x0000002a
  94. #define FILE_DEVICE_MODEM               0x0000002b
  95. #define FILE_DEVICE_VDM                 0x0000002c
  96. #define FILE_DEVICE_MASS_STORAGE        0x0000002d
  97. #define FILE_DEVICE_SMB                 0x0000002e
  98. #define FILE_DEVICE_KS                  0x0000002f
  99. #define FILE_DEVICE_CHANGER             0x00000030
  100. #define FILE_DEVICE_SMARTCARD           0x00000031
  101. #define FILE_DEVICE_ACPI                0x00000032
  102. #define FILE_DEVICE_DVD                 0x00000033
  103. #define FILE_DEVICE_FULLSCREEN_VIDEO    0x00000034
  104. #define FILE_DEVICE_DFS_FILE_SYSTEM     0x00000035
  105. #define FILE_DEVICE_DFS_VOLUME          0x00000036
  106.  
  107. //
  108. // Windows CE Specific Defines
  109. //
  110. #define FILE_DEVICE_HAL                    0x00000101
  111. #define FILE_DEVICE_CONSOLE             0x00000102
  112.  
  113. #endif    // _WINIOCTL_
  114.  
  115.